﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Thauan_Juliano_World
{
    public class Node
    {
        public Node(int i, int j, List<WorldObject> worldObjects)
        {
            I = i;
            J = j;

            Father = null;

            this.position = new Vector3(I * W + I, 0, J * H + J);
            Vector3 scale = new Vector3(W, 0, H);

            this.plano = new Plano(worldObjects, position, scale);

        }

        public Node Father { get; set; }
        public Plano plano;

        public Node upNode;
        public Node downNode;
        public Node leftNode;
        public Node rightNode;

        public int W = 5;
        public int H = 5;
        public Vector3 position;

        public static int AmountG = 1;

        public int g = 0;
        public int f = 0;

        public int I { get; set; }
        public int J { get; set; }

        public int Z { get; set; }
    }
}
